<?xml version="1.0" encoding="utf-8" ?>
<hibernate-mapping xmlns="urn:nhibernate-mapping-2.2" assembly="Ghasam.Business" namespace="Ghasam.Business.Domain.Entity">
    <class name="AdvancePayment" table="AdvancePayment" >
    <id name="Id" type="System.Int32" column="ID">
        <generator class="identity"/>
    </id>
    <many-to-one name="Employee" column="EmpId" class="Employee" update="0"  insert="0" />
    <property name="Amount" column="Amount" type="System.Int32" not-null="false" />
    <property name="Period" column="Period" type="System.Int32" not-null="false" />
    <property name="MonthlyInstalment" column="MonthlyInstalment" type="System.Int32" not-null="false" />
    <property name="IsSettled" column="IsSettled" type="System.Boolean" not-null="false" />
    <property name="DueDate" column="DueDate" type="System.DateTime" not-null="false" />
    <property name="GetDate" column="GetDate" type="System.DateTime" not-null="false" />
    <bag name="AdjustmentPayments" table="AdjustmentPayment" inverse="true" lazy="true" cascade="delete">
    <key column="AdvancePaymentId" />
    <one-to-many class="AdjustmentPayment"/>
    </bag>
 </class>
</hibernate-mapping>
